gtkstack: allow templates to override all properties
authorCarlos Soriano <csoriano@gnome.org>
Wed, 11 Nov 2015 12:51:02 +0000 (13:51 +0100)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 19 Nov 2015 19:50:09 +0000 (14:50 -0500)
commit9f3839066ec3bb1be49e127da1320f9b5d5bf02c
treef233029932641a03cf39ec3e6973779631dc116c
parent0434649cc14f1e860dca6ff14a2d3ce3aec68ac4
gtkstack: allow templates to override all properties

Currently GtkStack has some G_PARAM_CONSTRUCT properties. That means,
the properties are set with its default value after the initializacion
of the object.
When using GtkBuilder to build objects, GtkBuilder creates them and
after that sets the properties found on the xml definition.
However, this is not true for templates because the template is initialized
in the init() function of the actual object, and after that, the construct
properties will be set.

This is a problem when someone wants to use templates with GtkStack and
set those properties, since they will be set on the tempalt initialization
and set again to its default values afterwards.

To fix this, make those properties not G_PARAM_CONSTRUCT.

https://bugzilla.gnome.org/show_bug.cgi?id=758086
gtk/gtkstack.c